class @DashBoardView extends CustomView

    el: $('#content')

    initialize: ->
        $(@el).off()
        _.bindAll(@) 

    events:
        "click a.users": "users"
        "click a.authors": "authors"
        "click a.categories": "categories"
        "click a.books": "books"
        "click a.comments": "comments"
        "click a.responses": "responses"

    render:->
        el = $(@el)
        @GetTemplate(SiteMap.Admin.Content.DashboardTemplate, (compiledTemplate) =>
            el.html(compiledTemplate(''))
            Loading.Stop();
        )

    users: (event) ->
        event.preventDefault()
        @Navigate(SiteMap.Admin.Users.Listing, true)

    authors: (event) ->
        event.preventDefault()
        @Navigate(SiteMap.Admin.Authors.Listing, true)

    categories: (event) ->
        event.preventDefault()
        @Navigate(SiteMap.Admin.Categories.Listing, true)

    books: (event) ->
        event.preventDefault()
        @Navigate(SiteMap.Admin.Books.Listing, true)

    comments: (event) ->
        event.preventDefault()
        @Navigate(SiteMap.Admin.Comments.Listing, true)

    responses: (event) ->
        event.preventDefault()
        @Navigate(SiteMap.Admin.Responses.Listing, true)